package action;

import bean.User;
import com.opensymphony.xwork2.ActionSupport;

public class ConvertAction extends ActionSupport{
    private User user;
    @Override
    public String execute() throws Exception {
        if(getUser()==null){
            return "index";
        }
        addActionMessage(getUser().getName()+","+getUser().getPass());
        return "success";
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
